package pers.lonestar.framework.utils.support.contexts;

import java.util.List;

import pers.lonestar.framework.utils.support.metadata.read.ReadSheet;
import pers.lonestar.framework.utils.support.metadata.read.ReadWorkbook;
import reactor.core.publisher.FluxSink;

/**
 * 保存解析过程中的外部变量
 * 包括文件、输入流、ReadWorkbook、FluxSink等
 */
public class XlsxReadContext {
    private FluxSink<Object> fluxSink;
    private ReadWorkbook readWorkbook;
    private List<ReadSheet> parameterSheetDataList;

    public FluxSink<Object> getFluxSink() {
        return this.fluxSink;
    }

    public void setFluxSink(FluxSink<Object> fluxSink) {
        this.fluxSink = fluxSink;
    }

    public ReadWorkbook getReadWorkbook() {
        return this.readWorkbook;
    }

    public void setReadWorkbook(ReadWorkbook readWorkbook) {
        this.readWorkbook = readWorkbook;
    }

    public List<ReadSheet> getParameterSheetDataList() {
        return this.parameterSheetDataList;
    }

    public void setParameterSheetDataList(List<ReadSheet> parameterSheetDataList) {
        this.parameterSheetDataList = parameterSheetDataList;
    }
}
